import 'dart:convert';

import 'package:today_app/bloc/calendar_today/calendar_today_model.dart';

class CalendarTodayState {
  late CalendarTodayModel model;

  CalendarTodayState init() {
    String initJson = '''{
    "reason":"Success",
    "result":{
    "data":{
    "animalsYear":"-",
    "weekday":"---",
    "lunarYear":"---",
    "lunar":"-",
    "year-month":"---",
    "date":"-----",
    "suit":"---",
    "avoid":"-",
    "holiday":"",
    "desc":""
    }
    },
    "error_code":0
    }''';
    CalendarTodayModel model = CalendarTodayModel.fromJson(jsonDecode(initJson));
    return CalendarTodayState()
      ..model = model;
  }

  CalendarTodayState setModel(model) {
    return CalendarTodayState()
        ..model = model;
  }

  CalendarTodayState clone() {
    return CalendarTodayState()
      ..model = this.model;
  }
}
